package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Fans;
import cn.wolfcode.luowowo.article.mapper.FansMapper;
import cn.wolfcode.luowowo.article.service.IFansService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class FansServiceImpl implements IFansService {

    @Autowired
    private FansMapper fansMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return fansMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Fans record) {
        return fansMapper.insert(record);
    }

    @Override
    public Fans selectByPrimaryKey(Integer id) {
        return fansMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Fans> selectAll() {
        return fansMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Fans record) {
        return fansMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Fans> selectFansByUserId(Long id) {
        return fansMapper.selectFansByUserId(id);
    }
}
